package com.thciwei.proj.mapper;

import com.thciwei.proj.bean.Department;


import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);


    List<Department> getAllDepartmentsByParentId(Integer pid);

    void addDep(Department dep);

    void deleteById(Department dep);

    List<Department> getAllDepartmentsWithOutChildren();
}